package com.itqf.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * projectName: springmvc2103
 *
 * @author: 赵伟风
 * time: 2021/7/5 15:11
 * description:
 */
@RestController
@RequestMapping("new")
@CrossOrigin("*")
public class NewController  {

    @GetMapping("/error")
    public Object error(){

        int i = 1/0;

        return "大家好!我是渣渣辉!";
    }


}
